<?php $this->load->view('common/ck-bosspagehead'); ?>
<?php $this->load->view('common/ck-bossheader'); ?>
<article id="content">
    <div class="pgwrapper">
    <div class="w960 bg1 p15 bx_shw">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="20%" style="border-right: 2px solid #e5e5e5;" valign="top">
			<?php $this->load->view('enterprises/leftnavCMS'); ?>
			</td>
			<td width="80%" valign="top" style="padding:10px;">
    <!--Body top CRV PART Ends HERE-->
<table width="100%" border="1" cellpadding="10" cellspacing="0" style="border:1px solid #e5e5e5; border-collapse:collapse;">
<tr>
                <table border="1" style="font-size:12px;font-family:Arial" cellpadding="5" cellspacing="0">
                <tr>
                <td class="txt-blck"><strong>S. No</strong></td>
                    <td class="txt-blck"><strong>Store Name</strong></td>
                    <td class="txt-blck"><strong>Have Image</strong></td>
                    <td class="txt-blck"><strong>Total Views</strong></td>
                    <td class="txt-blck"><strong>This Month</strong></td>
                    <td class="txt-blck"><strong>Last Month</strong></td>
                    <td class="txt-blck"><strong>Last 3 Months</strong></td>
                    <td class="txt-blck"><strong>Last 6 Months</strong></td>
                    </tr>
                <?php $i=1; foreach($currentMonthViews as $temp => $value) { 
                    $url = $value['store_name']; ?>
                    <tr>
                    <td><?php echo $i++; ?></td>
                    <td><div><strong><?php echo $value['store_name']; ?></strong></div></td>
                    <?php if($value['store_image']!=''){ ?>
                    <td><div>Yes </div></td>
                    <?php } else { ?>
                    <td><div>No </div></td>
                    <?php } 
                    if(isset($currentMonthViews[$temp]['store_total_views'])){ ?>
                    <td><div><?php echo $currentMonthViews[$temp]['store_total_views']; ?> views </div></td>
                    <?php }else{ ?>
                    <td><div>0 views </div></td>
                    <?php }
                    if(isset($currentMonthViews[$temp]['store_views'])){ ?>
                    <td><div><?php echo $currentMonthViews[$temp]['store_views']; ?> views </div></td>
                    <?php }else{ ?>
                    <td><div>0 views </div></td>
                    <?php }
                    if(isset($lastMonthViews[$temp]['store_views'])){ ?>
                    <td><div><?php echo $lastMonthViews[$temp]['store_views']; ?> views </div></td>
                    <?php }else{ ?>
                    <td><div>0 views </div></td>
                    <?php }
                    if(isset($last3MonthViews[$temp]['store_views'])){ ?>
                    <td><div><?php echo $last3MonthViews[$temp]['store_views']; ?> views </div></td>
                    <?php }else{ ?>
                    <td><div>0 views </div></td>
                    <?php }
                    if(isset($last6MonthViews[$temp]['store_views'])){ ?>
                    <td><div><?php echo $last6MonthViews[$temp]['store_views']; ?> views </div></td>
                    <?php }else{ ?>
                    <td><div>0 views </div></td>
                    <?php } ?>
                    </tr>
                    
                <?php } ?>
                </table>
                </td>
                </tr>
                </table>
</div>
</div>
</article>
<div class="clr-both spacer-10">&nbsp;</div>
<?php $this->load->view('common/ck-bossfooter'); ?>